package Dao;

import org.springframework.context.annotation.Scope;
import org.springframework.stereotype.Repository;

import javax.annotation.PostConstruct;
import javax.annotation.PreDestroy;

@Repository("student")
//@Scope("prototype")
public class StudentImpl implements Student {
    @Override
    public void save() {
        System.out.println("StudentImpl");
    }
    @PostConstruct
    public void Init(){
        System.out.println("创建");
    }
    @PreDestroy
    public void Destroy(){
        System.out.println("销毁");
    }
}
